import turtle as l
l.pensize(8)
colors = ['red', 'green', 'blue']

def draw():
    # 清空图像
    l.clear()
    for color in colors:
        l.right(120)
        l.fd(70)
        l.dot(50, color)
        l.goto(0, 0)

    # 定时执行， 每隔500毫秒执行一次draw函数
    l.ontimer(draw, 5)
    l.right(1)

# 去除动画效果
l.tracer(False)
draw()
l.done()

